package com.lwl.java.base;

/**
 * @author lwl
 * @Description TODO
 * @date 2025/9/7 15:07
 */
public class StringOOMDemo {

    static class Node {
        String info;
        Node next;

        public Node(String info) {
            this.info = info;
        }
    }

    public static void main(String[] args) {
        int number = 1;
        Node root = new Node(String.valueOf(number++));
        Node t = root;
        while (true) {
            t.next = new Node(number++ + t.info);
            t = t.next;
//            System.out.println(t.info);
        }
    }
}
